package com.config.entity;

import java.util.Date;
import java.util.List;

import com.base.annotation.DisplayField;

public class ChargeConfig {
	private Integer id;
	private Integer fatherId;//父节点Id
	private String chargeType;// 电费模式 
	private String chargeName;// 电费名称
	private Double unitValue;// 单位电费
	private Date startTime;// 开始时间
	private Date endTime;// 结束时间
	private Integer sequence;// 顺序
	private String region;// 地区
	private String isEffective;// 是否有效  默认为Y  只能一种模式为Y
	@DisplayField
	private String state;//判断是否展开
	@DisplayField
	private List<ChargeConfig> children;
	@DisplayField
	private String start;//开始时刻
	@DisplayField
	private String end;//结束时刻

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getFatherId() {
		return fatherId;
	}

	public void setFatherId(Integer fatherId) {
		this.fatherId = fatherId;
	}

	public String getChargeType() {
		return chargeType;
	}

	public void setChargeType(String chargeType) {
		this.chargeType = chargeType;
	}

	public String getChargeName() {
		return chargeName;
	}

	public void setChargeName(String chargeName) {
		this.chargeName = chargeName;
	}

	public Double getUnitValue() {
		return unitValue;
	}

	public void setUnitValue(Double unitValue) {
		this.unitValue = unitValue;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public Integer getSequence() {
		return sequence;
	}

	public void setSequence(Integer sequence) {
		this.sequence = sequence;
	}

	public String getRegion() {
		return region;
	}

	public void setRegion(String region) {
		this.region = region;
	}

	public String getIsEffective() {
		return isEffective;
	}

	public void setIsEffective(String isEffective) {
		this.isEffective = isEffective;
	}

	
	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public List<ChargeConfig> getChildren() {
		return children;
	}

	public void setChildren(List<ChargeConfig> children) {
		this.children = children;
	}
	
	public String getStart() {
		return start;
	}

	public void setStart(String start) {
		this.start = start;
	}

	public String getEnd() {
		return end;
	}

	public void setEnd(String end) {
		this.end = end;
	}

	@Override
	public String toString() {
		return "ChargeConfig [id=" + id + ", chargeType=" + chargeType
				+ ", chargeName=" + chargeName + ", unitValue=" + unitValue
				+ ", startTime=" + startTime + ", endTime=" + endTime
				+ ", sequence=" + sequence + ", region=" + region
				+ ", isEffective=" + isEffective + "]";
	}

}
